package day4zy;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Scanner;

public class Xingqitian {
    public static void main(String[] args) {
        System.out.println("请输入年份：");
        Scanner in = new Scanner(System.in);
        int year = in.nextInt();
        SimpleDateFormat df = new SimpleDateFormat("MM-dd");
        Calendar dyt = Calendar.getInstance();
        dyt.set(year,0,1);
        for (int i = 1; i <= 365; i++) {
            dyt.set(year,0,i);
            if (i%7==1){
                System.out.println(df.format(dyt.getTime()));
                System.out.println(dyt.getTime());
            }

        }
    }
}
